Skip to content

chore(llf): add Tracy GPU zones for cluster build/cull#63

Merged
alandtse merged 1 commit into
devfrom
feat/llf-cluster-tracy-zones
May 30, 2026
Merged

chore(llf): add Tracy GPU zones for cluster build/cull#63
alandtse merged 1 commit into
devfrom
feat/llf-cluster-tracy-zones

Conversation

@alandtse
Copy link
Copy Markdown
Owner

Summary

Adds dedicated TracyD3D11Zone GPU markers around the two LightLimitFix cluster-pass dispatches in UpdateStructureLightLimitFix Cluster Build and LightLimitFix Cluster Cull. The existing LightLimitFix Prepass zone lumps both dispatches (plus light collection) together; splitting them lets the cull pass be measured in isolation. (Profiling showed the cull is ~92% of the cluster-pass cost — and ~0.8% of frame, vs ~69% for shadow rendering.) No-op without TRACY_ENABLE.

Notes

The include reorder / __except brace / trailing-newline hunks are the pre-commit clang-format + whitespace hooks normalizing pre-existing formatting drift in LightLimitFix.cpp — not part of the instrumentation change.

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings May 30, 2026 18:56
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 30, 2026

Warning

Review limit reached

@alandtse, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 39 minutes and 15 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 724bd1e9-c2ca-4766-88d7-b7353bba7cc4

📥 Commits

Reviewing files that changed from the base of the PR and between 9e0bd44 and c89a6d6.

📒 Files selected for processing (1)
  • src/Features/LightLimitFix.cpp
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/llf-cluster-tracy-zones

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds finer-grained Tracy GPU profiling for LightLimitFix’s clustered lighting compute work, and includes several formatting-only cleanups in WeatherEditor widgets and a few utility/core headers.

Changes:

  • Add dedicated TracyD3D11Zone markers to separate LightLimitFix cluster build vs cluster cull GPU timing.
  • Apply clang-format/whitespace refactors across multiple WeatherEditor widget files (brace expansion, wrapping, alignment).
  • Minor formatting adjustments in small headers/source (macro spacing, comment alignment, brace style).

Reviewed changes

Copilot reviewed 6 out of 12 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/WeatherEditor/Weather/WeatherWidget.cpp Formatting-only refactors around inheritance UI, tooltips, switch formatting, and alignment.
src/WeatherEditor/Weather/PrecipitationWidget.cpp Formatting-only indentation/alignment changes within UI lambdas.
src/WeatherEditor/Weather/LightingTemplateWidget.cpp Formatting-only alignment changes in search entries initializer.
src/WeatherEditor/Weather/CellLightingWidget.cpp Formatting-only brace expansion and alignment changes in UI/search entry lists.
src/Utils/RestartSettings.h Macro formatting tweak (brace spacing) and trailing whitespace cleanup.
src/ShaderCache.h Comment spacing normalization.
src/Hooks.cpp Brace-style normalization for an __except block.

Comment on lines 311 to 325
const bool isInherited = drawInheritCheckbox(inheritKey, recordRefs[i], parentRefs[i]);
ImGui::Text("%s:", label.c_str());
ImGui::SameLine(todLabelOffset);
if (isInherited) PushInheritedStyle();
if (isInherited)
PushInheritedStyle();
if (WeatherUtils::DrawFormPickerCached(pickerId, recordRefs[i], widgets, false, true, pickerWidth)) {
pendingReinit = true;
if (isInherited) settings.inheritFlags[inheritKey] = false;
if (isInherited)
settings.inheritFlags[inheritKey] = false;
}
if (isInherited) {
Util::AddTooltip("Inherited from parent weather");
PopInheritedStyle();
}
if (isInherited) { Util::AddTooltip("Inherited from parent weather"); PopInheritedStyle(); }
drawOpenButton(recordRefs[i], widgets, std::format("Open##{}", i), openTooltip);
@github-actions
Copy link
Copy Markdown

No actionable suggestions for changed features.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 30, 2026

✅ A pre-release build is available for this PR:
Download

Isolated per-dispatch GPU timing for the LightLimitFix cluster passes,
scoped via TracyD3D11Zone (no-op without TRACY_ENABLE). The existing
'LightLimitFix Prepass' zone lumps both dispatches; these split them so
the cull pass can be measured on its own.

The include reorder, __except brace, and trailing-newline changes are the
pre-commit clang-format/whitespace hooks normalizing pre-existing
formatting drift in the file, not part of the instrumentation change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@alandtse alandtse force-pushed the feat/llf-cluster-tracy-zones branch from 825eab5 to c89a6d6 Compare May 30, 2026 19:58
@alandtse alandtse merged commit c23d0d3 into dev May 30, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants